home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7693 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  757 b 

  1. From: bxiao@msn.com (Bing Xiao)
  2. Subject: RE: No struct in C++!!?
  3. Date: 25 Feb 96 05:38:40 -0800
  4. References: <1996Feb14.151620.5532@queens-belfast.ac.uk>
  5. Message-ID: <00001a81+0000a7ee@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c++
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10. a beginners question: I found in different C++ books examples of C++ programms
  11. which contain type declarations and definitions in the main() programm - for
  12. example a struct  - as in C.
  13. My question is, whether this is a contradiction 
  14. to the paradigm of C++. Shouldn't be everything in a C++ programm
  15. either classes, objects or the interaction between objects?
  16. So is it bad C++ style, to use functions or data outside from
  17. classes (objects)?
  18.  
  19. Thanks!
  20.  
  21. Georg Woeste
  22.